<%@ page import="servlets.*" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Local Orders List</title>
    </head>
    <body>
    <h1>Local Orders List</h1>
    <jsp:useBean id="orderList" class="servlets.OrderList"/> 
    <jsp:useBean id="localOrders" class="servlets.LocalOrders"/>
    <TABLE BORDER="1">
      <TR>
      <TH>ID</TH>
      <TH>Count</TH>
      <TH>Status</TH>
      <TH>Priority</TH>
      </TR>
      <% localOrders.setOrderProperty(orderList.findOrder("1"));%>
      
      <% Order result = localOrders.getOrderProperty();
      while(result != null){ %>
      <TR>
       <TD> <%= result.getItemid() %></td>
       <TD> <%= result.getItemcount() %></TD>
       <TD> <%= result.getStatus() %></TD>
       <TD> <%= result.getPriority() %></TD>
      </TR>
      <%result = localOrders.getOrderProperty(); 
      } %>
     </TABLE>
    
    </body>
</html>